package com.weishi;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 启动程序
 */
@SpringBootApplication
@EnableScheduling
public class SupportApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(SupportApplication.class, args);

        //启动tcp监听
       TCPService tcpService = new TCPService();
        tcpService.rum();

        System.err.println("====  系统启动成功！ ====");
    }


    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {

        return application.sources(SupportApplication.class);
    }

}